package com.example.java8;

import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class MainTest {
    public static void main(String[] args) {

//        ThreadPoolExecutor threadPoolExecutor = new ThreadPoolExecutor(1, 1,
//                0L, TimeUnit.MILLISECONDS,
//                new LinkedBlockingQueue<Runnable>());
//        Object ss = null;
//        System.out.println(ss + "");
//        System.out.println((String)ss);
//
//        Map<String, Object> map = new HashMap<>();
//        map.put(null, "23");
//        System.out.println();
//
//        List<String> names = Arrays.asList("张三", "李四", "王老五", "李三", "刘老四", "王小二", "张四", "张五六七","张五六九");
//
//        String maxZhang = names.stream().filter(name ->name.startsWith("张")).mapToInt(String::length).max().toString();
//
//        System.out.println(maxZhang);


        Thread t = new Thread(() -> pong());
        t.start();
        System.out.print("ping");
    }

    static void pong() {
        System.out.print("pong");
    }

    @Override
    public  int hashCode() {
        return super.hashCode();
    }
}



